package com.hnx.admin.aurora.annotation;

import com.hnx.admin.aurora.core.IPValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.TYPE,ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IPValidator.class)
@Documented
public @interface AttemptIP {
    String message() default "很遗憾，访问IP已被列入系统黑名单";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
